package chapter67;
/*
 * 宠物的主人类
 */
public class Master {
	//给宠物看病
	public void cure(Pet pet){
		if (pet.getHealth()<50){
			pet.toHospital();
		}
	}
	
	public void feed(Pet pet){
		do{
			if(pet.getHealth()<100){
				pet.toEat();
			}
		}while(pet.getHealth()<100);
	}
}
